﻿public static class HelpUnitity
{
    
    //将一个类转换为子类
    public static T ToSubClass<T>(this object obj) where T : class
    {
        return obj as T;
    }
    
}